<?php get_header(); ?>

<div id="pagewrap">
	<div id="page">
		<div id="content">
			<h2 class="page_note"><?php printf(__('Search Results for: %s', 'fazio'), '<span>' . esc_html(get_search_query()) . '</span>'); ?></h2>
			<?php if ( have_posts() ) : ?>
				<?php while ( have_posts() ) : the_post(); ?>
					<?php if($post->post_type == 'post') : ?>
						<?php get_template_part('dry/post'); ?>
					<?php endif; ?>
				<?php endwhile; ?>

			<?php pagination(); ?>

			<?php else : ?>

				<p><?php _e('Sorry, we didn\'t find any post with that search query.', 'fazio'); ?></p>
				<p><?php _e('Would you like to try again? Maybe change a few words, or see our archieves page. If you know it\'s here and you can\'t find it, please contact us. We will be glad to help you out.', 'fazio'); ?></p>

			<?php endif; ?>

		</div><!-- end content -->
		<?php get_sidebar(); ?>
	</div><!-- end page -->
</div><!-- end pagewrap -->

<?php get_footer(); ?>